package com.xiaojf.xlog.configure.props;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * xlog 全局配置
 *
 * @author Ade.Xiao 2021/3/12 14:44
 */
@ConfigurationProperties(prefix = "xlog.pool", ignoreInvalidFields = true)
public class XlogPoolProperties {
    /**
     * 最大线程数
     */
    private int maxPoolSize = 50;

    /**
     * core线程数
     */
    private int corePoolSize = 20;

    public int getMaxPoolSize() {
        return maxPoolSize;
    }

    public void setMaxPoolSize(int maxPoolSize) {
        this.maxPoolSize = maxPoolSize;
    }

    public int getCorePoolSize() {
        return corePoolSize;
    }

    public void setCorePoolSize(int corePoolSize) {
        this.corePoolSize = corePoolSize;
    }
}
